/*global requirejs, document, cordova, window, navigator, console */
requirejs.config({
    paths: {
        angular:          '../../common/ionic/js/angular/angular.min',
        ngCookies:        '../../common/ionic/js/angular/angular-cookies.min', //动态样式加载
        angularAnimate:   '../../common/ionic/js/angular/angular-animate.min',
        angularSanitize:  '../../common/ionic/js/angular/angular-sanitize.min',
        uiRouter:         '../../common/ionic/js/angular-ui/angular-ui-router.min',
        ngCordova:        '../../common/ionic/js/angular/ng-cordova.min',
        angularCss:       '../../common/ionic/js/angular/angular-css.min', //动态样式加载
        ngmodelFormat:    '../../common/ionic/js/angular/ngmodel.format.min', //输入框格式化
        angularKeepValues:'../../common/ionic/js/angular/angular-keep-values.min', //模板初始化值
        'angular-cache':     '../../common/ionic/js/angular/angular-cache.min',
        angularOffline:   '../../common/ionic/js/angular/angular-offline.min',
        ionic:            '../../common/ionic/js/ionic.min',
        ionicAngular:     '../../common/ionic/js/ionic-angular.min',
        topScroller:     '../../common/ionic/js/topscroller.min',
        text:             '../../common/ionic/js/text.min',
        jquery:           '../../common/jquery/jquery',
        jqueryCookie:     '../../common/jquery/jquery.cookie',
        featureCarousel:  '../../common/jquery/jquery.featureCarousel',
        highstock:        '../../common/highstock/highstock',
        highchartsNg:     '../../common/ionic/js/angular/highcharts-ng.min', // AngularJS directive for Highcharts
        store:            '../../common/jquery/store.min',
        xdate:            '../../gcs/js/common/xdate',
        base:             '../../common/js/jkf/base',
        bindOnce:         '../../common/bindonce/bindonce.min',
        radialIndicator:  '../../common/radialIndicator/radialIndicator.min'
    },
    shim: {
        jquery : {exports : 'jquery'},
        jqueryCookie : {deps: ['jquery'], exports : 'jqueryCookie'},
        featureCarousel:{deps:['jquery']},
        highstock : {deps: ['jquery'], exports : 'highstock'},
        base : {deps: ['jquery'], exports : 'base'},
        store : {deps: ['jquery'], exports : 'store'},
        xdate : {deps: ['jquery'], exports : 'xdate'},
        angular : {exports : 'angular'},
        angularAnimate : {deps: ['angular']},
        angularSanitize : {deps: ['angular']},
        ngCookies : {deps: ['angular']},
        uiRouter : {deps: ['angular']},
        ngCordova : {deps: ['angular']},
        ngmodelFormat : {deps: ['angular']},
        angularKeepValues : {deps: ['angular']},
        angularOffline : {deps: ['angular']},
        bindOnce:{deps:['angular']},
        topScroller :  {deps: ['angular'], exports : 'topScroller'},
        angularCss : {deps: ['angular','uiRouter']},
        highchartsNg : {deps: ['angular','highstock'], exports : 'highchartsNg'},
        ionic :  {deps: ['angular'], exports : 'ionic'},
        ionicAngular: {deps: ['angular', 'ngCordova','ionic', 'uiRouter', 'angularAnimate', 'angularSanitize','angularCss',
            'ngmodelFormat','angularKeepValues','highchartsNg','ngCookies','angularOffline','topScroller']},
        radialIndicator:{deps:['jquery']}
    },
    deps: [
        'bootstrap'
    ]
});